package main;

/**
 * @author Xu,
 * @data 2020/11/29，
 * @time 14:
 * 朴素贝叶斯算法
 */
public class Main {
    private static String path = "./src/data.txt";
    public static void main(String[] args) {
        Bayesian bay = new Bayesian();
        bay.readData(path);
        //bay.calculate_Bayesian(purchase, maintain, cardoor, person, size, scurity);
        //bay.show();
        //bay.here();
        bay.calculate_Bayesian("low","low","4","4","small","high");
        bay.calculate_Bayesian("high","high","4","4","med","med");
        bay.calculate_Bayesian("low","high","3","2","med","low");
        bay.calculate_Bayesian("low","low","2","more","big","high");
    }
}
